<?php
/**
 * @author: Hua Phuoc Truong
 * @created: 10:27 AM 10/4/13
 * @copyright: 2013
 * @version: 1.0
 */

include_once('ZMessageItem.php');

class ZPulseItem extends ZMessageItem {
    /**
     * Id of social media type
     * @var int
     */
    private $type;

    public function __construct($threadTitle, $lead, $text, $source, $url, $author, $postTitle, $time, $leadAuthor, $likes, $type, $threadId, $id) {
        parent::__construct($threadTitle, $lead, $text, $source, $url, $author, $postTitle, $time, $leadAuthor, $likes, $threadId, $id);

        $this->type = $type;
    }

    /**
     * Get id of social media type of this post
     * @return int
     */
    public function getType() {
        return $this->type;
    }
}